package lol.niconico.libtest.ui.paging

import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.paging.PagingData
import lol.niconico.libtest.entity.UserEntity
import lol.niconico.libtest.data.GitHubRepository

class PagingViewModel @ViewModelInject constructor(
    private val repository: GitHubRepository
) : ViewModel() {
    val pageDataLiveData: LiveData<PagingData<UserEntity>> = repository.getUserListByNetWithDb().asLiveData()
}